.class public Lcom/glympse/android/glympse/ViewSplash;
.super Landroid/widget/FrameLayout;
.source "ViewSplash.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/glympse/android/glympse/ViewSplash$MyGlympseView;,
        Lcom/glympse/android/glympse/ViewSplash$SplashTimer;
    }
.end annotation


# instance fields
.field public m_oGlympseView:Lcom/glympse/android/glympse/ViewSplash$MyGlympseView;

.field private m_oSplashTimer:Lcom/glympse/android/glympse/ViewSplash$SplashTimer;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "oContext"

    .prologue
    .line 41
    invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    .line 34
    new-instance v0, Lcom/glympse/android/glympse/ViewSplash$MyGlympseView;

    invoke-direct {v0, p0}, Lcom/glympse/android/glympse/ViewSplash$MyGlympseView;-><init>(Lcom/glympse/android/glympse/ViewSplash;)V

    iput-object v0, p0, Lcom/glympse/android/glympse/ViewSplash;->m_oGlympseView:Lcom/glympse/android/glympse/ViewSplash$MyGlympseView;

    .line 36
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/glympse/android/glympse/ViewSplash;->m_oSplashTimer:Lcom/glympse/android/glympse/ViewSplash$SplashTimer;

    .line 42
    return-void
.end method

.method private StartTimer()V
    .locals 4

    .prologue
    .line 102
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSplash;->m_oSplashTimer:Lcom/glympse/android/glympse/ViewSplash$SplashTimer;

    if-nez v0, :cond_0

    .line 104
    new-instance v0, Lcom/glympse/android/glympse/ViewSplash$SplashTimer;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/glympse/android/glympse/ViewSplash$SplashTimer;-><init>(Lcom/glympse/android/glympse/ViewSplash;Lcom/glympse/android/glympse/ViewSplash$SplashTimer;)V

    iput-object v0, p0, Lcom/glympse/android/glympse/ViewSplash;->m_oSplashTimer:Lcom/glympse/android/glympse/ViewSplash$SplashTimer;

    .line 105
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    iget-object v1, p0, Lcom/glympse/android/glympse/ViewSplash;->m_oSplashTimer:Lcom/glympse/android/glympse/ViewSplash$SplashTimer;

    const-wide/16 v2, 0x7d0

    invoke-virtual {v0, v1, v2, v3}, Lcom/glympse/platform/Platform;->PostToMainThreadDelayed(Lcom/glympse/platform/GRunnable;J)Z

    .line 107
    :cond_0
    return-void
.end method

.method private StopTimer()V
    .locals 2

    .prologue
    .line 112
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewSplash;->m_oSplashTimer:Lcom/glympse/android/glympse/ViewSplash$SplashTimer;

    if-eqz v0, :cond_0

    .line 114
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    iget-object v1, p0, Lcom/glympse/android/glympse/ViewSplash;->m_oSplashTimer:Lcom/glympse/android/glympse/ViewSplash$SplashTimer;

    invoke-virtual {v0, v1}, Lcom/glympse/platform/Platform;->CancelPost(Lcom/glympse/platform/GRunnable;)V

    .line 115
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/glympse/android/glympse/ViewSplash;->m_oSplashTimer:Lcom/glympse/android/glympse/ViewSplash$SplashTimer;

    .line 117
    :cond_0
    return-void
.end method

.method static synthetic access$0(Lcom/glympse/android/glympse/ViewSplash;)V
    .locals 0
    .parameter

    .prologue
    .line 100
    invoke-direct {p0}, Lcom/glympse/android/glympse/ViewSplash;->StartTimer()V

    return-void
.end method

.method static synthetic access$1(Lcom/glympse/android/glympse/ViewSplash;)V
    .locals 0
    .parameter

    .prologue
    .line 110
    invoke-direct {p0}, Lcom/glympse/android/glympse/ViewSplash;->StopTimer()V

    return-void
.end method


# virtual methods
.method public GoToMap()V
    .locals 3

    .prologue
    .line 122
    invoke-direct {p0}, Lcom/glympse/android/glympse/ViewSplash;->StopTimer()V

    .line 124
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/glympse/android/glympse/Glympse$EViews;->Splash:Lcom/glympse/android/glympse/Glympse$EViews;

    sget-object v1, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    invoke-virtual {v1}, Lcom/glympse/android/glympse/Glympse;->GetCurrentEView()Lcom/glympse/android/glympse/Glympse$EViews;

    move-result-object v1

    if-ne v0, v1, :cond_0

    .line 127
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    sget-object v1, Lcom/glympse/android/glympse/Glympse$EViews;->Map:Lcom/glympse/android/glympse/Glympse$EViews;

    sget-object v2, Lcom/glympse/android/glympse/Glympse$EAnimations;->None:Lcom/glympse/android/glympse/Glympse$EAnimations;

    invoke-virtual {v0, v1, v2}, Lcom/glympse/android/glympse/Glympse;->SetView(Lcom/glympse/android/glympse/Glympse$EViews;Lcom/glympse/android/glympse/Glympse$EAnimations;)Lcom/glympse/android/glympse/Glympse$EViews;

    .line 129
    :cond_0
    return-void
.end method
